﻿using System;
using System.Xml.Serialization;

namespace CodeContrib.Tests
{
	[XmlRoot("company", Namespace = "http://www.test.com/ns")]
	public class MockCompany : Company
	{
		public MockCompany()
		{
			var companyId = Guid.Empty;

			Id = companyId;
			Name = "Test";
			Uri = string.Format("http://api.test.com/company/{0}", companyId);

			for (var employeeIndex = 0; employeeIndex < 1; employeeIndex++)
			{
				var employeeId = Guid.Empty;

				var employee = new Employee
					               {
						               Id = employeeId,
						               DateOfBirth = DateTime.MinValue,
						               Uri = string.Format("http://api.test.com/employee/{0}", employeeId)
					               };

				Employees.Add(employee);
			}
		}
	}
}